package com.example.consumer.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.example.consumer.feign.DcClient;

@RestController
@RequestMapping("/dc")
public class DcController {
	@Autowired
    DiscoveryClient discoveryClient;
	
	@Autowired
    DcClient dcClient;
	
	@RequestMapping("/consumer")
    public String dc() {
        return dcClient.consumer();
    }
	
}
